package nccu.service.impl;

import nccu.dao.CallReportXmlSubmissionDao;
import nccu.model.SubmissionData;
import nccu.service.CallReportXmlSubmissionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("callReportXmlSubmissionManager")
public class CallReportXmlSubmissionManagerImpl
        extends GenericManagerImpl<SubmissionData, Long> implements CallReportXmlSubmissionManager {

    //@Autowired
    CallReportXmlSubmissionDao callReportXmlSubmissionDao;

    @Autowired
    public CallReportXmlSubmissionManagerImpl(CallReportXmlSubmissionDao callReportXmlSubmissionDao) {
        super(callReportXmlSubmissionDao);
        this.callReportXmlSubmissionDao = callReportXmlSubmissionDao;
    }

    public List<SubmissionData> findById(Long id) {
        return callReportXmlSubmissionDao.findById(id);
    }
}